/////////////////////////////////////////////////////////////////////////////
// Name:        payment.h
// Purpose:     
// Author:      Herry Sugiharto
// Modified by: 
// Created:     17/09/2008 23:00:36
// RCS-ID:      
// Copyright:   Copyright (c) 2000, 2008 Krida Software Division
// Licence:     
/////////////////////////////////////////////////////////////////////////////

#ifndef _PAYMENT_H_
#define _PAYMENT_H_


/*!
 * Includes
 */

////@begin includes
#include "wx/valgen.h"
////@end includes

/*!
 * Forward declarations
 */

////@begin forward declarations
////@end forward declarations

/*!
 * Control identifiers
 */

////@begin control identifiers
#define ID_PAYMENT 10006
#define ID_TEXT_TOTAL 10007
#define ID_TEXT_PAYMENT 10000
#define SYMBOL_PAYMENT_STYLE wxCAPTION|wxRESIZE_BORDER|wxSYSTEM_MENU|wxCLOSE_BOX|wxTAB_TRAVERSAL
#define SYMBOL_PAYMENT_TITLE _("Payment")
#define SYMBOL_PAYMENT_IDNAME ID_PAYMENT
#define SYMBOL_PAYMENT_SIZE wxSize(400, 300)
#define SYMBOL_PAYMENT_POSITION wxDefaultPosition
////@end control identifiers


/*!
 * Payment class declaration
 */

class Payment: public wxDialog
{    
    DECLARE_DYNAMIC_CLASS( Payment )
    DECLARE_EVENT_TABLE()

public:
    /// Constructors
    Payment();
    Payment( wxWindow* parent, wxWindowID id = SYMBOL_PAYMENT_IDNAME, const wxString& caption = SYMBOL_PAYMENT_TITLE, const wxPoint& pos = SYMBOL_PAYMENT_POSITION, const wxSize& size = SYMBOL_PAYMENT_SIZE, long style = SYMBOL_PAYMENT_STYLE );

    /// Creation
    bool Create( wxWindow* parent, wxWindowID id = SYMBOL_PAYMENT_IDNAME, const wxString& caption = SYMBOL_PAYMENT_TITLE, const wxPoint& pos = SYMBOL_PAYMENT_POSITION, const wxSize& size = SYMBOL_PAYMENT_SIZE, long style = SYMBOL_PAYMENT_STYLE );

    /// Destructor
    ~Payment();

    /// Initialises member variables
    void Init();

    /// Creates the controls and sizers
    void CreateControls();

////@begin Payment event handler declarations

    /// wxEVT_COMMAND_BUTTON_CLICKED event handler for wxID_OK
    void OnOkClick( wxCommandEvent& event );

    /// wxEVT_COMMAND_BUTTON_CLICKED event handler for wxID_CANCEL
    void OnCancelClick( wxCommandEvent& event );

////@end Payment event handler declarations

////@begin Payment member function declarations

    long GetGrandTotal() const { return GrandTotal ; }
    void SetGrandTotal(long value) { GrandTotal = value ; }

    long GetPaymentAmount() const { return PaymentAmount ; }
    void SetPaymentAmount(long value) { PaymentAmount = value ; }

    long GetChange() const { return Change ; }
    void SetChange(long value) { Change = value ; }

    /// Retrieves bitmap resources
    wxBitmap GetBitmapResource( const wxString& name );

    /// Retrieves icon resources
    wxIcon GetIconResource( const wxString& name );
////@end Payment member function declarations

    /// Should we show tooltips?
    static bool ShowToolTips();

////@begin Payment member variables
private:
    long GrandTotal;
    long PaymentAmount;
    long Change;
////@end Payment member variables
};

#endif
    // _PAYMENT_H_
